﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MzkMusic
{
    public partial class LrcUi : UserControl
    {
        Panel MusicListPnl;
        public Label[] LrcList;
        string[] LrtString = new string[7];
        public LrcUi(Panel musiclistpnl)
        {
            InitializeComponent();
            MusicListPnl = musiclistpnl;
            LrcList = new Label[]
            {
                Lrc1, Lrc2, Lrc3, Lrc4, Lrc5, Lrc6, Lrc7
            };
            RefreshLrc.Start();
    }
        private void BackBtn_Click(object sender, EventArgs e)
        {
            if (MusicListPnl != null)
            {
                this.Parent.Visible = false;
                this.Parent.Dock = DockStyle.None;
                MusicListPnl.Visible = true;
                MusicListPnl.Dock = DockStyle.Fill;
                RefreshLrc.Stop();
            }
        }

        private void RefreshLrc_Tick(object sender, EventArgs e)
        {
            if (GlobalData.CurPlayStart)
            {
                if (GlobalData.CurPlayMusic.lyrics != null)
                {
                    if (GlobalData.CurPlayMusic.CurTime > 0)
                    {
                        ;
                    }
                    //GlobalData.CurPlayMusic.Time;
                }
            }
        }
    }
}
